<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>炫酷登录切换</title>
    <link rel="stylesheet" href="style.css">
</head>

<body>
<div class="container">
    <div class="container-form container-signup">
        <form action="#" class="form" id="signInForm">
            <h2 class="form-title">تىزىملىتىش</h2>
            <input type="text" placeholder="ئىسم كىرگۈزۈڭ" class="input" />
            <input type="email" placeholder="ئېلخەت ئادىرسى كىرگۈزۈڭ" class="input" />
            <input type="password" placeholder="مەخپى نومۇرىنى كىرگۈزۈڭ" class="input" />
            <button type="button" class="btn">بۇيەرنى بىسىپ تىزىملىتىڭ</button>
        </form>
    </div>

    <div class="container-form container-signin">
        <form action="#" class="form" id="signUpForm">
            <h2 class="form-title">كىرىشىڭىزنى قارشى ئالىمىز </h2>
            <input type="email" placeholder="ئېلخەت ئادىرسى كىرگۈزۈڭ" class="input" />
            <input type="password" placeholder="مەخپى نومۇرىنى كىرگۈزۈڭ" class="input" />
            <a href="#" class="link">مەخپىي نومۇرنى ئۇنتۇپ قالدىم؟</a>
            <button type="button" class="btn">كىرىش</button>
        </form>
    </div>

    <div class="container-overlay">
        <div class="overlay">
            <div class="overlay-panel overlay-left">
                <button class="btn" id="signIn">
                    !تىزىملىتىپ بولدىڭىز،بىۋاستە كىرىڭ
                </button>
            </div>
            <div class="overlay-panel overlay-right">
                <button class="btn" id="signUp">
                    !تىخى تىزىملاتماپسىز،تىزىملىتىپ كىرىڭ
                </button>
            </div>
        </div>
    </div>
</div>
<script>
    const signInBtn = document.getElementById("signIn");
    const signUpBtn = document.getElementById("signUp");
    const container = document.querySelector(".container");

    signInBtn.addEventListener("click", () => {
        container.classList.remove("panel-active");
    });

    signUpBtn.addEventListener("click", () => {
        container.classList.add("panel-active");
    });
</script>

</body>

</html>